import mapper.LoginMessageMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import po.LoginMessage;


public class Main {
    public static void main(String[] args) {
        //测试配置文件
        ApplicationContext ctx=new ClassPathXmlApplicationContext("spring/applicationContext-dao.xml");
        LoginMessageMapper loginMessageMapper=(LoginMessageMapper) ctx.getBean("loginMessageMapper");
        LoginMessage loginMessage = new LoginMessage();
        try {
            loginMessage = loginMessageMapper.searchId(1);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
